<template>
    <!--Pop up window-->
    <div v-if="target != null">
        <div @click="close" class="pop-mask">
            <div class="pop-window">
                <div class="title">{{ target.name }}</div>
                <div class="links"></div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['target'],
    methods: {
        close: function() {
            this.$emit('close');
        }
    }
}
</script>

<style scoped>
.pop-mask {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
}

.pop-window {
    background: white;
    min-height: 300px;
    min-width: 400px;
    border: solid 2px black;
    border-radius: 10px;
    margin: auto;
}
</style>
